package com.opal.modules.costReportForm.mapper.mysql;

import com.opal.modules.costReportForm.model.CartonData;
import com.opal.modules.costReportForm.model.CartonPriceDetailsRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 纸箱mapper层
 */
public interface CartonDetailsMapper {


    public List<CartonData> onConditiongetCartonDetails(CartonData cartonData);

    List<CartonPriceDetailsRecord> getCartonPriceDetailsRecordByTAndcostReportId(CartonPriceDetailsRecord cartonPriceDetailsRecord);

    int deleteCartonPriceDetailsRecord(@Param("costReportId") String costReportId, @Param("i") int i);

    int deleteCartonPriceDetailsRecordByCostReportId(String costReportId);

    //若有id并数据库中有重复的进行更新，否则插入
    int insertCartonPriceDetailsRecord(CartonPriceDetailsRecord cartonPriceDetailsRecord);
}
